<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mindensors-servo.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Mindsensors NXTServo Sensor Driver.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="mindensors-servo_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gaa3ad0a572159cc7e6f1a45cd6481dd75">NXTSERVO_I2C_ADDR</a>&#160;&#160;&#160;0xB0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gadca1ac4d5a83bd4101e9dd2143ca7648">NXTSERVO_CMD</a>&#160;&#160;&#160;0x41</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga1d875258222194e4fac931261442bfc7">NXTSERVO_POS_CHAN1</a>&#160;&#160;&#160;0x42</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gabdeb7b6e2d2d065fcfadd977981637f0">NXTSERVO_POS_CHAN2</a>&#160;&#160;&#160;0x44</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga5edfff9268f227b3782dd212c64e20e3">NXTSERVO_POS_CHAN3</a>&#160;&#160;&#160;0x46</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga49e08ed3cd27972c3c776b5281a6e9d9">NXTSERVO_POS_CHAN4</a>&#160;&#160;&#160;0x48</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga3a405fcdc1625be98a53f7d6abc05020">NXTSERVO_POS_CHAN5</a>&#160;&#160;&#160;0x4A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga00945d0f5d54efe987641da12c2cce20">NXTSERVO_POS_CHAN6</a>&#160;&#160;&#160;0x4C</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga36b103de68a1b4fee7ef5dd5b36a9130">NXTSERVO_POS_CHAN7</a>&#160;&#160;&#160;0x4E</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga3b278b94470b5af034da4382dcd9fbb0">NXTSERVO_POS_CHAN8</a>&#160;&#160;&#160;0x50</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga0caa433103ee2b31b07c9e920445344b">NXTSERVO_SPEED_CHAN1</a>&#160;&#160;&#160;0x52</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga6561e1f44f1de395050c88c009dc9e0c">NXTSERVO_SPEED_CHAN2</a>&#160;&#160;&#160;0x53</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gae42bcbefe52da61391cacce9082fed56">NXTSERVO_SPEED_CHAN3</a>&#160;&#160;&#160;0x54</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gae613c60e56386b114ebb25cb7bf014f6">NXTSERVO_SPEED_CHAN4</a>&#160;&#160;&#160;0x55</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga85aceb1fbd5bb1a14ef6eddd334a6e99">NXTSERVO_SPEED_CHAN5</a>&#160;&#160;&#160;0x56</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga1a5daefc36f4737b1e36940236b51ea4">NXTSERVO_SPEED_CHAN6</a>&#160;&#160;&#160;0x57</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gad1fb92371f677de5bdfdd29fd0786093">NXTSERVO_SPEED_CHAN7</a>&#160;&#160;&#160;0x58</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gaf1492acd02c78b9d5320b8c912e9b313">NXTSERVO_SPEED_CHAN8</a>&#160;&#160;&#160;0x59</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gab962baea9fa4b0062ca99d01aaeed582">NXTSERVO_QPOS_CHAN1</a>&#160;&#160;&#160;0x42</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gaeec52f7d7d0ccf28a4432279622844e1">NXTSERVO_QPOS_CHAN2</a>&#160;&#160;&#160;0x44</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga0bb85dcf8b145c4da20b0dd7e6b47f23">NXTSERVO_QPOS_CHAN3</a>&#160;&#160;&#160;0x46</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga42b5d74bd3d33f585de7a06062e4b267">NXTSERVO_QPOS_CHAN4</a>&#160;&#160;&#160;0x48</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gab23227fe37944a5842f816d5f5cbb945">NXTSERVO_QPOS_CHAN5</a>&#160;&#160;&#160;0x4A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga46aa181fc7942b066730cf9d65d90c8d">NXTSERVO_QPOS_CHAN6</a>&#160;&#160;&#160;0x4C</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga9b9e202f205efa7a333029aa4842d8b1">NXTSERVO_QPOS_CHAN7</a>&#160;&#160;&#160;0x4E</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gaf758fa51a3172f50762255bc4fb78ebe">NXTSERVO_QPOS_CHAN8</a>&#160;&#160;&#160;0x50</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gaf05a970059dc753cf11400354acedce5">NXTSERVO_MIN_POS</a>&#160;&#160;&#160;500</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga08dd1e0f9fced9cc4e2e42f35a7586b4">NXTSERVO_MAX_POS</a>&#160;&#160;&#160;2500</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga6d55ab9012dc2e742c5c5e02732b11c2">NXTSERVO_MID_POS</a>&#160;&#160;&#160;1500</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga298c508e1bc26f8970704d54583a1f3b">NXTServoSetSpeed</a> (tSensors link, ubyte servochan, ubyte speed, ubyte address)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga4f47c2587c362e0a007681a5650f2a50">NXTServoSetPos</a> (tSensors link, ubyte servochan, int position, ubyte speed, ubyte address=NXTSERVO_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gab2e8092d07b321cabe5fa024b2650b19">NXTServoQSetPos</a> (tSensors link, ubyte servochan, ubyte position, byte speed, ubyte address=NXTSERVO_I2C_ADDR)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gac257265cd8511d4db73e14bec91a9463">NXTServoReadVoltage</a> (tSensors link, ubyte address=NXTSERVO_I2C_ADDR)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#gad8936160bd23e858a43ffa5e0df771b7">NXTSERVO_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nxtservo.html#ga8cdf086957500a1b763c4c9537efa0eb">NXTSERVO_I2CReply</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Mindsensors NXTServo Sensor Driver. </p>
<p><a class="el" href="mindensors-servo_8h.html" title="Mindsensors NXTServo Sensor Driver.">mindensors-servo.h</a> provides an API for the Mindsensors NXTServo Sensor</p>
<p>Changelog:</p>
<ul>
<li>0.1: Initial release</li>
</ul>
<p>Credits:</p>
<ul>
<li>Big thanks to Mindsensors for providing me with the hardware necessary to write and test this.</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where its due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat (xander_at_botbench.com) </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>30 September 2009 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>

<p>Definition in file <a class="el" href="mindensors-servo_8h_source.html">mindensors-servo.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
